package com.admission.model;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Lob;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.admission.listener.AuditableEntity;

//招生政策
@Entity
@Table(name = "admission_policy")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class AdmissionPolicy extends AuditableEntity {
	public static final String READINGTRUE = "1";// 是最新导读
	public static final String READINGFALSE = "0";// 不是
	public static final String ANNOUNCEMENTTRUE = "1";// 是最新公告
	public static final String ANNOUNCEMENTFALSE = "0";// 不是最新公告

	private String title;// 标题
	private String content;// 内容
	// private String year;// 年份
	// private String province;// 省份
	// private String type;// 科类
	private String latestReading;// 是否最新导读
	private String latestAnnouncement;// 最新公告
//	private int visitors = 0;// 浏览人数
	
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Lob
	@Basic(fetch = FetchType.LAZY)
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getLatestReading() {
		return latestReading;
	}

	public void setLatestReading(String latestReading) {
		this.latestReading = latestReading;
	}

	public String getLatestAnnouncement() {
		return latestAnnouncement;
	}

	public void setLatestAnnouncement(String latestAnnouncement) {
		this.latestAnnouncement = latestAnnouncement;
	}
}
